package com.cmpe451.nutty.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.cmpe451.nutty.dao.ToolsDao;
import com.cmpe451.nutty.dao.UserDao;
import com.cmpe451.nutty.model.Ingredients;
import com.cmpe451.nutty.model.Tools;

public class ToolsServiceImpl implements ToolsService {

	@Autowired
    private ToolsDao toolsDao;
	
	@Override
	public Tools getToolById(long id) {
		return toolsDao.findToolById(id);
	}

	@Override
	public Tools getToolByName(String name) {
		return toolsDao.findToolByName(name);
	}

	@Override
	public List<Tools> getAllTools() {
    	return toolsDao.findAll(Tools.class);
	}

}
